<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: WYX
  Date: 2024/6/10
  Time: 下午12:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户中心</title>
    <link rel="stylesheet" href="../../css/all.css">
    <jsp:useBean id="user" class="gamer.Bean.User" scope="session"/>
</head>
<body class="container">
<div>
    <div class="header">
        <img class="logo-img" src="../../img/logo.png" alt="logo">
        <div class="menu-div">
            <ul>
                <li><a href="../../index.jsp">首页</a></li>
                <li><a href="../game/gameMenu.jsp">游戏菜单</a></li>
                <%
                    if (user.getUser() == null)
                        out.print("<li style=\"background-color: #BBB\"><a href=\"login.jsp\">登录</a></li>");
                    else
                        out.print("<li style=\"background-color: #BBB\"><a href=\"userInfo.jsp\">用户中心</a></li>");
                %>
            </ul>
        </div>
    </div>
    <div class="main-div">
        <div class="from-div">
            <form action="">
                <%
                    out.print("<label>用户名：<input type=\"text\" name=\"user_id\" value=\"" + user.getUser().get("use_id") + "\" readonly></label><br>");
                    out.print("<label>密码：<input type=\"password\" name=\"pwd\" value=\"" + user.getUser().get("pwd") + "\" readonly></label><br>");
                    out.print("<label>分数：<input type=\"text\" name=\"score\" value=\"" + user.getUser().get("money") + "\" readonly></label><br>");
                %>
            </form>
        </div>
    </div>
</div>
</body>
</html>
